<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>练习</title>
	<style>
		*{
			margin: 0px;
			padding: 0px;
		}
		.box{
			width: 100px;
			height: 100px;
			background-color: skyblue;
		}
		.box2{
			width: 50px;
			height: 50px;
			background-color: tomato;

		}

		/*@media only screen and (min-width: 1000px){
			body{
				background-color: skyblue;
			}
		}*/
	
	body{
		height: 2000px;
	}
	.scrollbig{
		width: 200px;
		height: 600px;
		background-color: skyblue;
		overflow: auto;
	}

	.scrollsmall{
		height: 1200px;
		width: 100px;
		background-color: tomato;
	}

	</style>
</head>
<body>

<div class="box">


	<div class="box2"></div>
	
</div>

<p>单行省略单行省略单行省略单行省略单行省略单行省略</p>

<div class="scrollbig">
	<div class="scrollsmall">dsada</div>
</div>

<div style="width: 600px;border: 1px solid #ccc;margin-top: 20px;display: flex;overflow-x: scroll;flex-wrap: wrap;">
	<div style="width: 200px;height: 100px;background-color: skyblue">1</div>
	<div style="width: 200px;height: 100px;background-color: skyblue">2</div>
	<div style="width: 200px;height: 100px;background-color: skyblue">3</div>
	<div style="width: 200px;height: 100px;background-color: skyblue">4</div>
	<div style="width: 200px;height: 100px;background-color: skyblue">5</div>
	<div style="width: 200px;height: 100px;background-color: skyblue">6</div>
	<div style="width: 200px;height: 100px;background-color: skyblue">4</div>
	<div style="width: 200px;height: 100px;background-color: skyblue">5</div>
	<div style="width: 200px;height: 100px;background-color: skyblue">6</div>
</div>
<script>
	
	var moshi = new RegExp(/s+/,"g");
	var str = "dsa dsad dasdasd";
	
	

	str = str.replace(/(^\s*)|(\s*$)/g, ""); 
	console.log(str);

	var abc = "border-bottom-color";
	var abc2 = "";
	for(var i =0;i<abc.length;i++){
		if(abc[i] === "-"){
			i = i+1;
			abc2 = abc2 + abc[i].toUpperCase();
		}else{
			abc2 = abc2 + abc[i];
		}
	}

	console.log(abc2);
</script>
</body>
</html>